<template>
    <div>
       <h1>{{msg}}</h1> 
       <h2 @click="go($event)">接收到了home传来的：{{this.$route.query.id}}</h2>
       <h3>这里是新闻的详情页面</h3>
    </div>
</template>

<script>
export default {
    name:'',
    data() {
        return {
            msg:"我是detail组件"
        };
    },
    created() {

    },
    methods: {
        go(e){
            console.log(e.path[2])
        }
    },
    components: {

    },
};
</script>

<style>

</style>
